Note that the
pseudocode statement end if means "end the previous if
statement." This is to make it clear what statements are inside the if
statement and what statements are outside of the if statement. |
|
Depending on a
certain condition a certain series of events will be executed. Another type
of branching statement is called a switch statement. A switch
statement is just a shorter way of writing a lot of if statements.
Switch statements will be explained a bit further. |
|